home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Singing Fun! / Sunday Savers: Singing Fun!.iso / mac / Xtras / Buddy API 1.6 / Buddy API Docs.swf / texts / 1382.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  2.3 KB  |  107 lines

  1. 103
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. PrintDlg 
  6. --- RECORDSEPARATOR ---
  7. Platform:
  8. --- RECORDSEPARATOR ---
  9.  
  10. --- RECORDSEPARATOR ---
  11. Windows
  12. --- RECORDSEPARATOR ---
  13.  
  14. --- RECORDSEPARATOR ---
  15. Description:
  16. --- RECORDSEPARATOR ---
  17.  
  18. --- RECORDSEPARATOR ---
  19. baPrintDlg shows the system printer dialog.
  20. --- RECORDSEPARATOR ---
  21.  
  22. --- RECORDSEPARATOR ---
  23. Usage:
  24. --- RECORDSEPARATOR ---
  25.  
  26. --- RECORDSEPARATOR ---
  27. Result = baPrintDlg( Flags )
  28. --- RECORDSEPARATOR ---
  29.  
  30. --- RECORDSEPARATOR ---
  31. Arguments:
  32. --- RECORDSEPARATOR ---
  33.  
  34. --- RECORDSEPARATOR ---
  35. Integer 
  36. --- RECORDSEPARATOR ---
  37. Flags alters the behaviour of the dialog. No Flags are presently defined, always 
  38. --- RECORDSEPARATOR ---
  39. use 0.
  40. --- RECORDSEPARATOR ---
  41.  
  42. --- RECORDSEPARATOR ---
  43. Returns:
  44. --- RECORDSEPARATOR ---
  45.  
  46. --- RECORDSEPARATOR ---
  47. Integer 
  48. --- RECORDSEPARATOR ---
  49. Returns 1 if user selects Print, otherwise 0.
  50. --- RECORDSEPARATOR ---
  51.  
  52. --- RECORDSEPARATOR ---
  53. Examples:
  54. --- RECORDSEPARATOR ---
  55.  
  56. --- RECORDSEPARATOR ---
  57. Director: 
  58. --- RECORDSEPARATOR ---
  59. set ok = baPrinterDlg( 0 ) 
  60. --- RECORDSEPARATOR ---
  61. Authorware: 
  62. --- RECORDSEPARATOR ---
  63. ok := baPrinterDlg( 0 )
  64. --- RECORDSEPARATOR ---
  65.  
  66. --- RECORDSEPARATOR ---
  67. Notes:
  68. --- RECORDSEPARATOR ---
  69.  
  70. --- RECORDSEPARATOR ---
  71. This function does not do any printing - it just shows the dialog box. 
  72. --- RECORDSEPARATOR ---
  73. The return will be 1 if the user clicks the 'Print' button, or 0 if the user cancels. If the 
  74. --- RECORDSEPARATOR ---
  75. user clicks Print, then the selections the user has made in the dialog will be set as 
  76. --- RECORDSEPARATOR ---
  77. the default printer settings. You can retrieve these settings by using baPrinterInfo. 
  78. --- RECORDSEPARATOR ---
  79. For example, baPrinterInfo( "copies" ) will return the number of copies the user 
  80. --- RECORDSEPARATOR ---
  81. selected. 
  82. --- RECORDSEPARATOR ---
  83. if baPrintDlg( 0 ) = 1 then 
  84. --- RECORDSEPARATOR ---
  85. -- user selected to print 
  86. --- RECORDSEPARATOR ---
  87. copies = baPrinterInfo( "copies" ) 
  88. --- RECORDSEPARATOR ---
  89. -- get number of copies entered 
  90. --- RECORDSEPARATOR ---
  91. doMyPrint( copies ) 
  92. --- RECORDSEPARATOR ---
  93. -- pass to your printing routine 
  94. --- RECORDSEPARATOR ---
  95. end if
  96. --- RECORDSEPARATOR ---
  97.  
  98. --- RECORDSEPARATOR ---
  99. See also:
  100. --- RECORDSEPARATOR ---
  101.  
  102. --- RECORDSEPARATOR ---
  103. baPrinterInfo. 
  104. --- RECORDSEPARATOR ---
  105. baSetPrinter 
  106. --- RECORDSEPARATOR ---
  107. baPageSetupDlg